﻿using JWT;
using Newtonsoft.Json;

namespace Common.Identity;

public class CustomJwtTokenJsonSerializer : IJsonSerializer
{
    public string Serialize(object obj)
    {
        return JsonConvert.SerializeObject(obj);
    }

    public object Deserialize(Type type, string json)
    {
        return JsonConvert.DeserializeObject(json, type);
    }
}